<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWishwallsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wishwalls', function (Blueprint $table) {
            $table->increments('id');
            $table->text('content');
            $table->tinyInteger('color');
            $table->string('xyz');
            $table->string('name');
            $table->time('addtime');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('wishwalls');
        Schema::table('wishwalls', function ($table) {
        $table->dropColumn('content');
        $table->dropColumn('color');
        $table->dropColumn('xyz');
        $table->dropColumn('name');
        $table->dropColumn('addtime');
        });
    }
}
